package service.video;

import dao.AlbumDAO;
import dao.RecordDuplicateException;
import dao.VideoDAO;
import entities.Customer;
import entities.Video;
import entities.Album;


public class VideoServiceInMemory implements VideoService {

	public VideoServiceInMemory(){
		
	}
	
	public static VideoService newInstance(){
		return new VideoServiceInMemory();
	}
	
	/**
	 * Finds a Album based on the Album id.
	 * @param userid - user id
	 * @return the instance of the Album
	 */
	public Video findVideo(Long product_id){
		VideoDAO db = VideoDAO.getInstance();
		Video result = null;
		result = db.findVideo(product_id);
		return result;
	}
	
	
	/**
	 * Adds a new Album to the system.
	 * @param obj - the Album instance to add
	 */
	
	public void addVideo(Video obj) throws RecordDuplicateException{
		VideoDAO db = VideoDAO.getInstance();	
		db.addVideo(obj);
		return;
	}








}
